{"version":3,"sources":["script.js"],"names":["BX","namespace","Main","TileGrid","options","Grid","apply","this","arguments","navigation","isLoadingNextPortion","init","onCustomEvent","window","prototype","__proto__","constructor","bindEvents","call","addEventListener","throttle","handleScroll","bind","parameters","userOptions","UserOptions","userOptionsActions","userOptionsHandlerUrl","needToShowNextPortion","showNextPortion","handleBackspace","history","back","reload","url","data","type","isString","document","location","toString","message","SITE_ID","sessid","bitrix_sessid","eventArgs","gridId","getId","promise","ajax","util","add_url_param","grid_id","internal","method","dataType","setHeightContainer","setFadeContainer","loader","getLoader","showLoader","then","response","redraw","tileGrid","items","destroy","unSetFadeContainer","unSetHeightContainer","getUserOptions","prepareSortUrl","header","by","sort_by","order","sort_order","sortByColumn","column","sort_url","setSort","grid_action","hasNextPage","containerHeight","pos","container","height","windowHeight","body","offsetHeight","offsetBottomBorder","getBoundingClientRect","top","countOfRows","parseInt","pageSize","countItemsPerRow","itemHeight","layout","Math","max","urlNextPage","forEach","item","appendItem","catch"],"mappings":"CAAC,WACA,aAKAA,GAAGC,UAAU,WAQbD,GAAGE,KAAKC,SAAW,SAASC,GAE3BJ,GAAGG,SAASE,KAAKC,MAAMC,KAAMC,WAE7BD,KAAKE,WAAaL,EAAQK,WAC1BF,KAAKG,qBAAuB,MAE5BH,KAAKI,KAAKP,GACVJ,GAAGY,cACFC,OACA,gCACCN,QAIHP,GAAGE,KAAKC,SAASW,WAEhBC,UAAWf,GAAGG,SAASE,KAAKS,UAC5BE,YAAahB,GAAGE,KAAKC,SAErBc,WAAY,WAEXjB,GAAGG,SAASE,KAAKS,UAAUG,WAAWC,KAAKX,MAE3CM,OAAOM,iBAAiB,SAAUnB,GAAGoB,SAASb,KAAKc,aAAaC,KAAKf,MAAO,OAG7EI,KAAM,SAASY,GAEdhB,KAAKiB,YAAc,IAAIxB,GAAGE,KAAKC,SAASsB,YAAYlB,KAAMgB,EAAWC,YAAaD,EAAWG,mBAAoBH,EAAWI,wBAG7HN,aAAc,WAEb,GAAGd,KAAKq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